package com.bluesky.drcp.persistence.dao.hibernate;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.bluesky.drcp.business.FunctionModule;
import com.bluesky.drcp.persistence.dao.FunctionModuleDao;

public class FunctionModuleDaoImpl extends HibernateDaoSupport implements
		FunctionModuleDao {

	public FunctionModule get(String id) {
		return (FunctionModule) getHibernateTemplate().get(
				FunctionModule.class, id);
	}

	public void delete(String functionId) {
		FunctionModule o = (FunctionModule) getHibernateTemplate().get(
				FunctionModule.class, functionId);
		getHibernateTemplate().delete(o);
	}

	public void saveOrUpdate(FunctionModule functionModule) {
		getHibernateTemplate().saveOrUpdate(functionModule);
	}

}
